core: add ofnode_get_by_phandle() api
authorKever Yang <[email protected]>
Fri, 23 Feb 2018 16:38:50 +0000 (17:38 +0100)
committerAnatolij Gustschin <[email protected]>
Fri, 23 Feb 2018 19:48:09 +0000 (20:48 +0100)
commitb4f20767b12a5718ed8549aece73d405c6cac800
tree2e3374f58faf55f5389b6398116bef8dad0c3079
parente2d5997ffdf5cbf4f7d53584dab2ffc673f50987
core: add ofnode_get_by_phandle() api

We need to get ofnode from a phandle, add interface to support
both live dt and fdt.

Signed-off-by: Kever Yang <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Reviewed-by: Philipp Tomsich <[email protected]>
Tested-by: Klaus Goger <[email protected]>
Signed-off-by: Philipp Tomsich <[email protected]>
drivers/core/ofnode.c
include/dm/ofnode.h